<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta id="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
		<meta name="apple-themes-web-app-capable" content="yes">
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta content="telephone=no" name="format-detection">
		<meta content="email=no" name="format-detection">
		<meta name="format-detection" content="telephone=no">
		<title>最新揭晓</title>	
		<link rel="stylesheet" href="${s.base}/mobile/css/main.css" type="text/css" media="all">
		<link rel="stylesheet" href="${s.base}/mobile/css/dropload.css" type="text/css" media="all">
	</head>

	<body>

 	<!--页面加载 开始-->
     <!--<div id="preloader">
     <div id="status">
      <p class="center-text"><span>拼命加载中···</span></p>
     </div>
    </div>-->
    <!--页面加载 结束-->    
		<header id="header">
			<div class="header_con">
				<a href="javascript:history.go(-1);"><span></span></a> 
                <div class="top_tit">最新揭晓</div>         
			</div>
		</header>

		<div id="content_div" >

            <div class="home_kj_list" id="showContent" style="background:none;">

				<!--<ul>
					<img src="images/cp01.jpg" />
					<li>
						<h2>移动500元充值卡 新狂飙场</h2>
						<p><span>期</span>号： 3328</p>

						<div class="div_djs">
							<h3>开奖倒计时：</h3>
							<span>0</span><span>4</span><em>:</em><span>0</span><span>0</span><em>:</em><span>0</span><span>0</span>
						</div>
					</li>
				</ul>

				<ul>
					<img src="images/cp02.jpg" />
					<li>
						<h2>iPhone6金色128G超大内存抢购</h2>
						<p><span>期</span>号： 3328</p>

						<div class="div_djs">
							<h3>开奖倒计时：</h3>
							<span>0</span><span>4</span><em>:</em><span>0</span><span>0</span><em>:</em><span>0</span><span>0</span>
						</div>
					</li>
				</ul>-->

             </div>

      </div>	
    <!--底部-->
	<!--底部结束-->
	<script type="text/javascript" src="${s.base}/mobile/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="${s.base}/js/layer/layer.js"></script>
	<script type="text/javascript" src="${s.base}/js/base/commont.js"></script>
    <script type="text/javascript" src="${s.base}/mobile/js/dropload.min.js"></script>
    <script>
        $(function(){
            show();
        });
        function show(){
            var memberId = '${memberId}';
            // 每页展示5个
            var num = 5;
            var pageStart = 0,pageEnd = 0;
            // dropload
            $('#content_div').dropload({
                scrollArea : window,
                loadDownFn : function(me){
                    console.log("进入！");
                    pageStart++;
                    $.post("/activity/jsonPastActList",{
                        limit : num,
                        page : pageStart,
                        orderType : 4,
                        status : 2
                    },function(resultInfo){
                        if (resultInfo.code == 0){
                            var result = '';
                            if (resultInfo.data!=null && resultInfo.data.length > 0){
                                for(var i=0;i<resultInfo.data.length;i++){
                                    //console.log("测试:"+counter);
                                    var items=resultInfo.data[i];
                                    result += ' <ul onclick="window.location.href=\'/phone/itemBuyList/'+items.id+'?memberId='+memberId+'\'" style="background: #fff;margin: 10px 5px;">'+
                                        '<img src="'+items.imageOne+'" />'+
                                        '<li>'+
                                        '<h2>'+items.itemTitle+'</h2>'+
                                        '<p><span>期</span>号： '+items.periodsNum+'</p>'+
                                        '<p><em>获奖</em>者： <label>'+items.memberName+'</label></p>'+
                                        '<p>幸运号码： <label>'+items.winningNum+'</label></p>'+
                                        '<p>参与人次： '+items.winInNum+'</p>'+
                                        '<p>开奖时间： '+items.updateTime+'</p>'+
                                        '</li>'+
                                        '</ul>';
                                }

                            }

                            $('#showContent').append(result);
                            // 每次数据加载完，必须重置
                            if(resultInfo.isLastPage||resultInfo.isLastPage=="true"){
                                me.lock();
                                // 无数据
                                me.noData();
                                $(".dropload-down").remove();
                            }else {
                                me.resetload();
                            }
                        }
                    },"json");
                }
            });
		}
    </script>
	<script type="text/javascript" src="${s.base}/mobile/js/common.js"></script>
	</body>

</html>